/*
 * @Description:测试类
 * 
 * @Author: 平常心
 * 
 * @Date: 2024-09-24 15:22:35
 * 
 * @LastEditors: 平常心
 * 
 * @LastEditTime: 2024-09-24 16:27:14
 */
/**
 * Test04Student
 */
public class Test04Student {

  public static void main(String[] args) {
    Student student1 = new Student("Student1", 20);
    Student student2 = new Student("Student1", 20);
    // Student student2 = student1;
    // 比较的是对象的引用，s1和s2是分别创建的 所以引用地址不可能相同
    System.out.println("student1 == student2:" + (student1 == student2));
    System.out.println("student1.equals(student2):" + student1.equals(student2));
    System.out.println("student1.getClass():" + student1.getClass());
  }
}